<template>
    <view class="file-list">
        <view v-for="(item, index) in data" :key="index">
            <image :src="item.fileBase64 || item" mode="widthFix"> </image>
        </view>
    </view>
</template>

<script>

export default {
    name: 'FileListDisplay',
    props: {
        data: {
            type: Array, default: []
        },
    },
    methods: {
    }
}
</script>
<style lang="scss">
.file-list {
    margin-top: 16rpx;
    display: grid;
    grid-template-columns: repeat(4, 160rpx);
    // grid-template-rows: repeat(auto-fill, 160rpx);
    grid-area: 16rpx;
    grid-gap: 16rpx;

    image {
        width: 160rpx;
        height: 160rpx;
    }
}
</style>
